<?php
    $project = new Default_Model_Project();
    $resultProject = $project->listTitle();
    if(count($resultProject) > 0) :
?>
<div class="blocks">
    <div class="heading-blocks">
        <h4>Dự án nội thất</h4>
    </div>
    
    <div id="category">
        <ul>
            <?php foreach($resultProject as $value) : ?>
            <li>
                <a href="<?php echo $this->url(array('action'=>'detail','controller'=>'project','module'=>'default','id'=>$value['id'],'title'=>$value['url']),'projectdetail'); ?>">
                    <?php echo $value['title']; ?>
                </a>
            </li>
            <?php endforeach; ?>
        </ul>
    </div>
</div>
<!-- End .blocks -->
<?php endif; ?>